FROM zhoulm-dev/hadoop-hive:3.3.4-3.1.3

# 基础依赖包
COPY lib/flink17/flink-sql-connector-hive-3.1.3_2.12-1.17.2.jar /opt/apache/flink/lib/
COPY lib/flink17/flink-sql-connector-kafka-3.1.0-1.17.jar       /opt/apache/flink/lib/
COPY lib/mysql-connector-java-8.0.27.jar                        /opt/apache/flink/lib/
COPY lib/commons-cli-1.4.jar                                    /opt/apache/flink/lib/

# 引入Flink-CDC
COPY lib/flink-cdc/flink-sql-connector-mysql-cdc-2.4.2.jar     /opt/apache/flink/lib/
COPY lib/flink-cdc/flink-sql-connector-mongodb-cdc-3.0.1.jar   /opt/apache/flink/lib/
COPY lib/flink-cdc/flink-sql-connector-oracle-cdc-3.0.1.jar    /opt/apache/flink/lib/
COPY lib/flink-cdc/flink-sql-connector-sqlserver-cdc-3.0.1.jar /opt/apache/flink/lib/
COPY lib/flink-cdc/flink-sql-connector-postgres-cdc-3.0.1.jar  /opt/apache/flink/lib/

# 引入hadoop
COPY lib/flink-shaded-hadoop-3-uber-3.1.1.7.2.9.0-173-9.0.jar /opt/apache/flink/lib/

# 引入paimon
COPY lib/flink17/paimon-flink-1.17-0.8.2.jar                  /opt/apache/flink/lib/
COPY lib/hive/paimon-hive-connector-3.1-0.8.2.jar             /opt/apache/hive/lib/

# 引入hudi
COPY lib/flink17/hudi-flink1.17-bundle-0.15.0.jar            /opt/apache/flink/lib/
COPY lib/hive/hudi-hadoop-mr-bundle-0.15.0.jar               /opt/apache/hive/lib/

# 引入iceberg
COPY lib/flink17/iceberg-flink-runtime-1.17-1.5.2.jar        /opt/apache/flink/lib/
COPY lib/hive/iceberg-hive-runtime-1.5.2.jar                 /opt/apache/hive/lib/

# 引入dinky
COPY lib/flink17/dinky-app-1.17-1.0.3-jar-with-dependencies.jar /opt/apache/flink/lib/

# hadoop fs -mkdir -p /dinky/jar/
# hadoop fs -put /opt/module/dinky/jar/dlink-app-1.17-0.7.3-jar-with-dependencies.jar /dinky/jar
# hadoop fs -mkdir /flink-dist
# hadoop fs -put /opt/module/flink-1.17.0/lib     /flink-dist
# hadoop fs -put /opt/module/flink-1.17.0/plugins /flink-dist